﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	铁牛农机网: 产品信息
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="myContent">
    <a class="rcezrlex">日出而作，日落而息。</a>
    <div id="datepicker"></div>
    <div class="myContent middle">
        <a class="registerUser">已注册用户</a><br />
        <%int i = 0; %>
        <%foreach (AgriculturalMachinery.Models.Clients c in (ViewData["AllClients"] as IQueryable))%>
        <% { %>
        <%if (c.UserName.ToString().Trim().Equals("admin")) continue;%>
        <%i++; %>
        <div class="persional">
            <img alt="" src="../../Avatar/<%=c.Avatar %>" class="persionalAvatar" />
            <a class="persionalName" href="/personal/detail/<%=c.UserID %>">
                <%=c.UserName %></a><br />
            <a class="persionalLookinside" href="/personal/detail/<%=c.UserID %>">查看</a><br />
        </div>
        <%if (i == 5)
              break; %>
        <%} %>
        <div id="fenyeLeft" class="fenyeLeft" onmousemove="fenyeLeftMouseMove();" onmouseout="fenyeLeftMouseOut();"
            onclick="fenye();">
        </div>
        <div id="fenyeRight" class="fenyeRight" onmousemove="fengyeRightMouseMove();" onmouseout="fenyeRightMouseOut();"
            onclick="fenye();">
        </div>
    </div>
</div>
<div class="productBrowser">
    <!-- Tabs -->
	<div id="productTabs">
		<ul>
			<li><a href="#tabs-1">变速箱产品浏览</a></li>
			<li id="#tabs-2" ><a href="#tabs-2" >发动机产品浏览</a></li>
		</ul>
		<div id="tabs-1">
		<table class="productContentTable">
            <tr class="productContentTableTitle">
                <td><input type="checkbox" onclick="productSelectAll('ck');"/></td>
                <td>变速箱型号</td>
                <td>变速箱铭牌</td>
                <td>变速箱厂址</td>
                <td>变速箱日期</td>
                <td>变速箱余量</td>
                <td>变速箱价格</td>
            </tr>
            <%foreach (AgriculturalMachinery.Models.ProductInfo p in (ViewData["AllProduct"] as IQueryable)) %>
            <%{ %>
            <%if (p.GearboxModel != null) %>
            <%{ %>
            <tr>
                <td><input type="checkbox"  class="ck" name="ck" id="<%=p.StorageID %>"/></td>
                <td><%=p.GearboxModel %></td>
                <td><%=p.GearboxNameplate %></td>
                <td><%=p.GearboxFactory %></td>
                <td><%=p.GearboxStockDate %></td>
                <td><%=p.GearboxMargin %></td>
                <td><%=p.GearboxPrice %></td>
            </tr>
            <%} %>
            <%} %>
        </table>
        </div>
		<div id="tabs-2">
		    <table class="productContentTable">
                <tr class="productContentTableTitle">
                    <td><input type="checkbox" onclick="productSelectAll('ck1');"/></td>
                    <td>发动机型号</td>
                    <td>发动机铭牌</td>
                    <td>发动机厂址</td>
                    <td>发动机日期</td>
                    <td>发动机余量</td>
                    <td>发动机价格</td>
                </tr>
                <%foreach (AgriculturalMachinery.Models.ProductInfo p1 in (ViewData["AllProduct"] as IQueryable)) %>
                <%{ %>
                    <%if (p1.EngineModel != null) %>
                    <%{ %>
                        <tr>
                            <td><input type="checkbox" class="ck1" name="ck1" id="<%=p1.StorageID %>"/></td>
                            <td><%=p1.EngineModel %></td>
                            <td><%=p1.EngineNameplate %></td>
                            <td><%=p1.EngineFactory %></td>
                            <td><%=p1.EngineSotckDate %></td>
                            <td><%=p1.EngineMargin %></td>
                            <td><%=p1.EnginePrice %></td>
                        </tr>
                    <%} %>
                <%} %>
            </table>
		</div>
	</div>
</div>
    <div class="loginArea">
        <div class="loginContent">
        <%try %>
        <%{ %>
        <%if (Request.Cookies["cooUserID"].Value != null) %>
            <%{ %>
            <img style="width:86px; height: 97px;" alt="<%=Request.Cookies["cooUserName"].Value %>" src="../Avatar/<%=Request.Cookies["cooAvatar"].Value %>"
                class="logined" /><br />
            <div>
                欢迎 <strong>
                    <%=Request.Cookies["cooUserName"].Value%></strong> 回来<br />
            </div>
            <div id="myInfo" class="myInfo" onclick="personalInfo(<%=Request.Cookies["cooUserID"].Value %>);" onmousemove="myInfoMouseMove();"
            onmouseout="myInfoMouseOut();">
                我的信息</div>
            <br />
            <div id="myLogout" class="myLogout" onmousemove="myLogoutMouseMove();" onmouseout="myLogoutMouseOut();">
                <a href="Account/LogOff">点击退出</a></div>
            <%} %>
        <%} %>
        <%catch %>
        <%{ %>        
            <h5 class="rapidLogin">快速登录</h5>
            用户名:
            <input type="text" id="UserName1" name="UserName1" value="请输入您的邮箱" onclick="userNameInput1();"
                onblur="userNameBlur1();" style="font-style: italic; color: Gray; width: 130px;
                border-color: #EEB420; margin: 3px 3px 3px 3px;" />
            <div id="hintInfo1" style="height: 15px; text-align: center; color: Red; display: none;">
                <span>↑邮箱输入有误↑</span>
            </div>
            密 码: &nbsp;&nbsp;<input type="password" id="Password1" name="Password1" style="width: 130px;
                border-color: #EEB420; margin: 3px 3px 3px 3px;" />
            <br />
            <div style="width: 200px; padding-top: 7px;">
                <div class="resetButton" onclick="resetButton1();">
                </div>
                <div class="loginButton" onclick="homeLogin1(UserName1.value,Password1.value);">
                </div>
            </div>
            <%} %>
        </div>
    </div>
    <div id="siteAnnounce" class="siteAnnounce">
        登录以查看站内信
    </div>
    <div id="friendLink" class="friendLink">
        <a href="http://www.amic.agri.gov.cn" target="_blank">中国农业机械化信息网</a><br />
        <a href="http://www.caamm.org.cn" target="_blank">中国农机工业网</a><br />
        <a href="http://www.caams.org.cn" target="_blank">中国农业机械化科学研究院</a><br />
        <a href="http://www.nongji.com.cn/" target="_blank">中国农机互联网</a><br />
        <a href="http://www.nyjx.cn" target="_blank">中国农业机械网</a><br />
        <a href="http://www.nongji.net" target="_blank">中国农机网站信息共享联盟</a><br />
        <a href="http://www.camn.agri.gov.cn" target="_blank">中国农机新闻网</a><br />
    </div>
<script type="text/javascript" src="../../Scripts/ProductBrowse.js"></script>
</asp:Content>
